// SplitterPane.cpp : implementation file
//

#include "stdafx.h"
#include "SplitterPane.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

IMPLEMENT_DYNCREATE(SplitterPane, CWnd)

/////////////////////////////////////////////////////////////////////////////
// SplitterPane

SplitterPane::SplitterPane()
{
	m_comp = NULL;
}

SplitterPane::~SplitterPane()
{
}


BEGIN_MESSAGE_MAP(SplitterPane, CWnd)
	//{{AFX_MSG_MAP(SplitterPane)
	ON_WM_SIZE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// SplitterPane message handlers

void SplitterPane::OnSize(UINT nType, int cx, int cy) 
{
	CWnd::OnSize(nType, cx, cy);
	
	if (m_comp != NULL)
	{
		AWTComponent* cmp = ((AWTContainer*)m_comp)->getComponent(0);
		if (cmp != NULL)
		{
			cmp->setBounds(0,0,cx,cy);
			cmp->invalidate();
			cmp->validate();
		}
	}
	
}
